package questionsObjects;

/**
 * Created with IntelliJ IDEA.
 * User: xpk
 * Date: 11/17/13
 * Time: 7:11 PM
 * To change this template use File | Settings | File Templates.
 */
public class ComplexityAndPosition {
    private final int complexityOfQuestion;
    private final int positionOfQuestion;

    public ComplexityAndPosition(int complexityOfQuestion, int positionOfQuestion) {
        this.complexityOfQuestion = complexityOfQuestion;
        this.positionOfQuestion = positionOfQuestion;
    }

    public int getComplexityOfQuestion() {
        return complexityOfQuestion;
    }

    public int getPositionOfQuestion() {
        return positionOfQuestion;
    }

    public boolean equals(Object obj) {
        return ((ComplexityAndPosition) obj).getComplexityOfQuestion() == complexityOfQuestion ? true : false;
    }

}
